package com.example.websocketclusterspringbootstarter.annotation;

import com.example.websocketclusterspringbootstarter.config.WebSocketClusterAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用 WebSocket 集群功能
 *
 * @author zhucc
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(WebSocketClusterAutoConfiguration.class)
public @interface EnableWebSocketCluster {
}